#!/usr/bin/env python
# coding=utf-8
# Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved.
# MemCache_Hybrid is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#          http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.

__all__ = ['DistributedObjectStore', 'ReplicateConfig', 'KeyInfo', 'MetaService']

import os
import sys
import ctypes

current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(current_dir)

lib_dir = os.path.join(current_dir, 'lib')
lib_list = ['libmf_hybm_core.so', 'libmf_smem.so', 'libmf_memcache.so']
for lib_source in lib_list:
    ctypes.CDLL(os.path.join(lib_dir, lib_source))

from _pymmc import DistributedObjectStore, ReplicateConfig, KeyInfo, MetaService